@@ -23,8 +23,6 @@ const store = new Vuex.Store({
2323 active : { } ,
2424 uname : "" ,
2525 multipleProjects : false ,
26- isLoading : false ,
27- isFullPage : true ,
2826 objectCache : [ ] , // Only for shared objects
2927 langs : [
3028 { ph : "In English" , value : "en" } ,
@@ -59,9 +57,6 @@ const store = new Vuex.Store({
5957 uploadAbort : undefined ,
6058 } ,
6159 mutations : {
62- loading ( state , payload ) {
63- state . isLoading = payload ;
64- } ,
6560 updateObjects ( state , objects ) {
6661 // Update object cache with the new object listing.
6762 state . objectCache = [ ...objects ] ;
@@ -86,9 +81,6 @@ const store = new Vuex.Store({
8681 // Update the username in store
8782 state . uname = newUname ;
8883 } ,
89- setLoading ( state , newValue ) {
90- state . isLoading = newValue ;
91- } ,
9284 setSharingClient ( state , newClient ) {
9385 state . client = newClient ;
9486 } ,
@@ -248,24 +240,18 @@ const store = new Vuex.Store({
248240 } ,
249241 actions : {
250242 updateContainers : async function (
251- { state, commit , dispatch } ,
243+ { state, dispatch } ,
252244 { projectID, signal } ,
253245 ) {
254246 const existingContainers = await state . db . containers
255247 . where ( { projectID } )
256248 . toArray ( ) ;
257- if ( existingContainers . length === 0 ) {
258- commit ( "loading" , true ) ;
259- }
260249 let containers ;
261250 let marker = "" ;
262251 let newContainers = [ ] ;
263252 do {
264253 containers = [ ] ;
265- containers = await getContainers ( projectID , marker ) . catch ( ( ) => {
266- commit ( "loading" , false ) ;
267- } ) ;
268- commit ( "loading" , false ) ;
254+ containers = await getContainers ( projectID , marker ) . catch ( ( ) => { } ) ;
269255 if ( containers . length > 0 ) {
270256 containers . forEach ( cont => {
271257 cont . tokens = tokenize ( cont . name ) ;
@@ -494,7 +480,6 @@ const store = new Vuex.Store({
494480 { commit, dispatch } ,
495481 { project, owner, container, signal } ,
496482 ) {
497- commit ( "loading" , true ) ;
498483 let sharedObjects = [ ] ;
499484 let marker = "" ;
500485 let objects = [ ] ;
@@ -507,7 +492,6 @@ const store = new Vuex.Store({
507492 true ,
508493 owner ,
509494 ) . catch ( ( ) => {
510- commit ( "loading" , false ) ;
511495 commit ( "updateObjects" , [ ] ) ;
512496 } ) ;
513497
@@ -516,7 +500,6 @@ const store = new Vuex.Store({
516500 marker = objects [ objects . length - 1 ] . name ;
517501 }
518502 } while ( objects . length > 0 ) ;
519- commit ( "loading" , false ) ;
520503 commit ( "updateObjects" , sharedObjects ) ;
521504 dispatch ( "updateObjectTags" , {
522505 projectID : project ,
0 commit comments