Skip to content

Commit

Permalink
Merge pull request openWB#557 from benderl/dependencies
Browse files Browse the repository at this point in the history
Dependencies
  • Loading branch information
benderl authored Sep 30, 2024
2 parents 43e08a0 + 40afcf4 commit 277120f
Show file tree
Hide file tree
Showing 11 changed files with 48 additions and 343 deletions.
279 changes: 30 additions & 249 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/backup_clouds/BackupCloudConfigMixin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export default {
updateConfiguration(event, path = undefined) {
this.$emit("update:configuration", { value: event, object: path });
},
sendSystemCommand(command, data = {}) {
sendCommand(command, data = {}) {
this.$emit("sendCommand", {
command: command,
data: data,
Expand Down
16 changes: 2 additions & 14 deletions src/components/backup_clouds/OpenwbBackupCloudProxy.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@

<script>
import { defineAsyncComponent } from "vue";
import BackupCloudConfigMixin from "./BackupCloudConfigMixin.vue";
import OpenwbBackupCloudFallback from "./OpenwbBackupCloudConfigFallback.vue";
export default {
name: "OpenwbBackupCloudProxy",
props: {
backupCloud: { type: Object, required: true },
},
emits: ["update:configuration", "sendCommand"],
mixins: [BackupCloudConfigMixin],
computed: {
myComponent() {
console.debug(`loading backup cloud: ${this.backupCloud.type}`);
Expand All @@ -30,15 +28,5 @@ export default {
});
},
},
methods: {
// event pass through
updateConfiguration(event) {
this.$emit("update:configuration", event);
},
// event pass through
sendCommand(event) {
this.$emit("sendCommand", event);
},
},
};
</script>
2 changes: 1 addition & 1 deletion src/components/backup_clouds/onedrive/backup_cloud.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
title="4. Token abrufen und speichern"
button-text="Autorisierungs-Token abrufen"
subtype="success"
@button-clicked="sendSystemCommand('retrieveMSALTokens', {})"
@button-clicked="sendCommand('retrieveMSALTokens', {})"
>
<template #help>
Zugangstoken wird abgerufen und gespeichert, damit das Backup
Expand Down
Loading

0 comments on commit 277120f

Please sign in to comment.