diff --git a/src/components/AddSheet.vue b/src/components/AddSheet.vue index f3585e7..10a575e 100644 --- a/src/components/AddSheet.vue +++ b/src/components/AddSheet.vue @@ -32,9 +32,8 @@ - {{ group }}
- {{ groupPermissions.description }} + {{ group }}: {{ groupPermissions.description }} +

+ NOTE: invite {{ + groupPermissions?.service_account_email }} to the sheet, see further instructions below. +

@@ -149,7 +152,7 @@ export default { this.loading = true; this.newSheetId = ""; - this.$store.dispatch("createSheet", this.sheetName).then((res) => { + this.$store.dispatch("createSheet", { name: this.sheetName, service_account_email: this.groupPermissions.service_account_email }).then((res) => { this.$store.dispatch("checkUserUsage"); if (!res.success) throw new Error(res.result); this.newSheetId = res.result; diff --git a/src/components/ArchiveSheet.vue b/src/components/ArchiveSheet.vue index 05d3ad1..38888ff 100644 --- a/src/components/ArchiveSheet.vue +++ b/src/components/ArchiveSheet.vue @@ -15,11 +15,11 @@ Instructions
    -
  1. Choose a sheet name;
  2. -
  3. Choose a group: this will impact where/how to archive;
  4. -
  5. Choose a frequency: how often to archive;
  6. -
  7. Press "create" and wait;
  8. -
  9. Sheet will appear in "Your Sheets" below.
  10. +
  11. Choose a sheet name
  12. +
  13. Choose a group: this will impact where/how to archive
  14. +
  15. Choose a frequency: how often to archive
  16. +
  17. Press "create" and wait
  18. +
  19. Sheet will appear in "Your Sheets" below
NB: This new sheet will be shared with the @@ -39,15 +39,12 @@ Instructions
    -
  1. - Invite - bellingcat-auto-archiver-api@bellingcat-auto-archiver-b85db.iam.gserviceaccount.com - into your spreadsheet -
  2. +
  3. Choose a group to associate with this Google Sheet
  4. +
  5. Invite the provided email as Editor to your Google Sheet
  6. Make sure you have the following mandatory column names:
      -
    • Link where you will put the URLs.
    • +
    • Link where you will put the URLs
    • Archive Status to monitor progress and success of archiver diff --git a/src/store/index.js b/src/store/index.js index f59fe22..a0847f6 100644 --- a/src/store/index.js +++ b/src/store/index.js @@ -225,7 +225,7 @@ export default createStore({ } }, - async createSheet({ state, dispatch, commit }, name) { + async createSheet({ state, dispatch, commit }, {name, service_account_email}) { return new Promise(async (resolve, reject) => { try { // create new sheet @@ -355,7 +355,7 @@ export default createStore({ role: "writer", type: "user", emailAddress: - "bellingcat-auto-archiver-api@bellingcat-auto-archiver-b85db.iam.gserviceaccount.com", + service_account_email, }, });