File tree 5 files changed +8
-4179
lines changed
5 files changed +8
-4179
lines changed Original file line number Diff line number Diff line change 1
- *
1
+ ** / *
2
2
! .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
681
681
< wr-modal @modal-closed ="${ this . onCancelSettings } " title ="Settings ">
682
682
< div class ="tabs mb-3 ">
683
683
< ul >
684
- < li class ="${ this . settingsTab === "ipfs" ? "is-active" : "" } ">
685
- < a @click =${ ( ) => this . settingsTab = "ipfs" } > IPFS</ a >
686
- </ li >
687
684
< li class ="${ this . settingsTab === "browsertrix" ? "is-active" : "" } ">
688
685
< a @click =${ ( ) => this . settingsTab = "browsertrix" } > Browsertrix</ a >
689
686
</ li >
687
+ < li class ="${ this . settingsTab === "ipfs" ? "is-active" : "" } ">
688
+ < a @click =${ ( ) => this . settingsTab = "ipfs" } > IPFS</ a >
689
+ </ li >
690
690
</ ul >
691
691
</ div >
692
692
@@ -746,10 +746,10 @@ class ArchiveWebApp extends ReplayWebApp
746
746
</ div >
747
747
< div class ="field has-addons ">
748
748
< p class ="is-expanded ">
749
- Organization Name (Optional)
749
+ Organization Name or Slug (Optional)
750
750
< input class ="input is-small " type ="text "
751
751
name ="btrixOrgName " id ="btrixOrgName " value ="${ this . btrixOpts && this . btrixOpts . orgName } "
752
- placeholder ="Organization (optional) ">
752
+ placeholder ="my-org ">
753
753
</ p >
754
754
</ div >
755
755
</ fieldset >
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ export class BtrixClient
353
353
}
354
354
355
355
async getOrg ( name = "" ) {
356
- const json = await this . fetchAPI ( "/api/users/me-with-orgs " ) ;
356
+ const json = await this . fetchAPI ( "/api/users/me" ) ;
357
357
const { orgs } = json ;
358
358
if ( ! orgs || ! orgs . length ) {
359
359
return null ;
@@ -362,7 +362,7 @@ export class BtrixClient
362
362
return orgs [ 0 ] . id ;
363
363
}
364
364
for ( const org of orgs ) {
365
- if ( org . name === name ) {
365
+ if ( org . slug === name || org . name === name ) {
366
366
return org . id ;
367
367
}
368
368
}
You can’t perform that action at this time.
0 commit comments