apps: add route to list sites for operators
the main backup listing route is only available for admins
This commit is contained in:
@@ -276,7 +276,7 @@ async function refreshBackupList() {
|
||||
onMounted(async () => {
|
||||
autoBackupsEnabled.value = props.app.enableBackup;
|
||||
|
||||
const [error, result] = await backupSitesModel.list();
|
||||
const [error, result] = await appsModel.listBackupSites(props.app.id);
|
||||
if (error) return console.error(error);
|
||||
|
||||
backupSites.value = result;
|
||||
|
||||
@@ -261,6 +261,7 @@ onMounted(async () => {
|
||||
<br/>
|
||||
<Checkbox v-if="needsOverwriteDns" v-model="overwriteDns" :label="$t('app.location.dnsoverwrite')"/>
|
||||
|
||||
<br/>
|
||||
<Button @click="onSubmit()" :loading="busy" :disabled="busy || (app.error && app.error.details.installationState !== ISTATES.PENDING_LOCATION_CHANGE) || app.taskId || !formValid">{{ $t('app.location.saveAction') }}</Button>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user