diff --git a/src/components/AddSheet.vue b/src/components/AddSheet.vue index a728480..d7ad9c4 100644 --- a/src/components/AddSheet.vue +++ b/src/components/AddSheet.vue @@ -45,7 +45,7 @@ displayPermissionValue(groupPermissions?.max_monthly_urls, " URLs") }}
  • Monthly MBs: {{ groupUsage.monthly_mbs || 0 }} out of {{ displayPermissionValue(groupPermissions?.max_monthly_mbs, " MBs") }}
  • -
  • How long will we store these archives: {{ +
  • We will store archives for: {{ displayPermissionValue(groupPermissions?.max_archive_lifespan_months, " months") }}
  • You {{ groupPermissions?.manually_trigger_sheet ? "can" : "cannot" }} manually diff --git a/src/views/ArchiveUrlView.vue b/src/views/ArchiveUrlView.vue index fc24ec8..f7da1c5 100644 --- a/src/views/ArchiveUrlView.vue +++ b/src/views/ArchiveUrlView.vue @@ -17,12 +17,11 @@ - + + :disabled="!validUrl || loadingArchive || (group == 'please select') || maxedOutMBs || maxedOutURLs"> Archive @@ -48,7 +47,7 @@ this URL.

    - + Quota and rules for group {{ group }}:
      @@ -67,7 +66,7 @@ maxed out -
    • How long will we store these archives: {{ +
    • We will store archives for: {{ displayPermissionValue(groupPermissions?.max_archive_lifespan_months, " months") }}
    @@ -93,8 +92,8 @@ export default { data() { return { url: "", - public: true, - group: "", + public: false, + group: "please select", loadingArchive: false, taskId: null, @@ -124,11 +123,9 @@ export default { }, availableGroups() { const permissions = this.$store.state.user?.permissions || {}; - return [{ title: "only me", value: "" }].concat( - Object.keys(permissions) - .filter(group => group !== "all" && permissions[group].archive_url) - .map(g => ({ title: g, value: g })) - ); + return Object.keys(permissions) + .filter(group => group !== "all" && permissions[group].archive_url) + .map(g => ({ title: g, value: g })); }, globalUsage() { return this.$store.state.user?.usage || {}; @@ -181,7 +178,7 @@ export default { }, body: JSON.stringify({ url: this.url, - group: this.public ? "" : this.group, + group_id: this.group, public: this.public, tags: [], })