File tree Expand file tree Collapse file tree 5 files changed +8
-4179
lines changed
Expand file tree Collapse file tree 5 files changed +8
-4179
lines changed Original file line number Diff line number Diff line change 1- *
1+ ** / *
22! .gitignore
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -681,12 +681,12 @@ class ArchiveWebApp extends ReplayWebApp
681681 < wr-modal @modal-closed ="${ this . onCancelSettings } " title ="Settings ">
682682 < div class ="tabs mb-3 ">
683683 < ul >
684- < li class ="${ this . settingsTab === "ipfs" ? "is-active" : "" } ">
685- < a @click =${ ( ) => this . settingsTab = "ipfs" } > IPFS</ a >
686- </ li >
687684 < li class ="${ this . settingsTab === "browsertrix" ? "is-active" : "" } ">
688685 < a @click =${ ( ) => this . settingsTab = "browsertrix" } > Browsertrix</ a >
689686 </ li >
687+ < li class ="${ this . settingsTab === "ipfs" ? "is-active" : "" } ">
688+ < a @click =${ ( ) => this . settingsTab = "ipfs" } > IPFS</ a >
689+ </ li >
690690 </ ul >
691691 </ div >
692692
@@ -746,10 +746,10 @@ class ArchiveWebApp extends ReplayWebApp
746746 </ div >
747747 < div class ="field has-addons ">
748748 < p class ="is-expanded ">
749- Organization Name (Optional)
749+ Organization Name or Slug (Optional)
750750 < input class ="input is-small " type ="text "
751751 name ="btrixOrgName " id ="btrixOrgName " value ="${ this . btrixOpts && this . btrixOpts . orgName } "
752- placeholder ="Organization (optional) ">
752+ placeholder ="my-org ">
753753 </ p >
754754 </ div >
755755 </ fieldset >
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export class BtrixClient
353353 }
354354
355355 async getOrg ( name = "" ) {
356- const json = await this . fetchAPI ( "/api/users/me-with-orgs " ) ;
356+ const json = await this . fetchAPI ( "/api/users/me" ) ;
357357 const { orgs } = json ;
358358 if ( ! orgs || ! orgs . length ) {
359359 return null ;
@@ -362,7 +362,7 @@ export class BtrixClient
362362 return orgs [ 0 ] . id ;
363363 }
364364 for ( const org of orgs ) {
365- if ( org . name === name ) {
365+ if ( org . slug === name || org . name === name ) {
366366 return org . id ;
367367 }
368368 }
You can’t perform that action at this time.
0 commit comments