diff --git a/src/interface/common.ts b/src/interface/common.ts index fcdb2901f..67c0824fc 100644 --- a/src/interface/common.ts +++ b/src/interface/common.ts @@ -330,8 +330,12 @@ export interface Site { // siteGroups?: string[]; // token in headers authToken?: string; + tokenRequired? : boolean; + tokenTip?: string; apiCdn?: string[]; getInfoAjaxCache?: boolean; + + } /** diff --git a/src/options/views/settings/Sites/Add.vue b/src/options/views/settings/Sites/Add.vue index fbe9ee82d..e0b2c69ba 100644 --- a/src/options/views/settings/Sites/Add.vue +++ b/src/options/views/settings/Sites/Add.vue @@ -206,7 +206,7 @@ export default Vue.extend({ }, next(step: number) { if (this.selectedSite && this.selectedSite.name) { - this.valid = true; + this.valid = !this.selectedSite.tokenRequired; this.haveError = false; this.step++; } else { diff --git a/src/options/views/settings/Sites/Editor.vue b/src/options/views/settings/Sites/Editor.vue index 2b4ace9c9..38c0c0b5e 100644 --- a/src/options/views/settings/Sites/Editor.vue +++ b/src/options/views/settings/Sites/Editor.vue @@ -1,7 +1,7 @@