Whitespace cleanup
This commit is contained in:
@@ -32,7 +32,7 @@ const TEMPLATE =`
|
|||||||
class ComponentState {
|
class ComponentState {
|
||||||
/**
|
/**
|
||||||
* Serializable state of this component.
|
* Serializable state of this component.
|
||||||
*
|
*
|
||||||
* @param {Object} tableState
|
* @param {Object} tableState
|
||||||
*/
|
*/
|
||||||
constructor(tableState) {
|
constructor(tableState) {
|
||||||
@@ -163,7 +163,7 @@ Vue.component('attract-app', {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* Save table state to localStorage per project and context
|
* Save table state to localStorage per project and context
|
||||||
* @param {Object} newState
|
* @param {Object} newState
|
||||||
*/
|
*/
|
||||||
onTableStateChanged(newState) {
|
onTableStateChanged(newState) {
|
||||||
let appState = new ComponentState(newState);
|
let appState = new ComponentState(newState);
|
||||||
@@ -171,7 +171,7 @@ Vue.component('attract-app', {
|
|||||||
try {
|
try {
|
||||||
localStorage.setItem(this.stateStorageKey, stateJsonStr);
|
localStorage.setItem(this.stateStorageKey, stateJsonStr);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// Log and ignore.
|
// Log and ignore.
|
||||||
console.warn('Unable to save state:', error);
|
console.warn('Unable to save state:', error);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -189,7 +189,7 @@ Vue.component('attract-app', {
|
|||||||
if (!this.isTableInited) {
|
if (!this.isTableInited) {
|
||||||
return StateSaveMode.IGNORE;
|
return StateSaveMode.IGNORE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!oldState) {
|
if (!oldState) {
|
||||||
// Initial state. Replace what we have so we can go back to this state
|
// Initial state. Replace what we have so we can go back to this state
|
||||||
return StateSaveMode.REPLACE;
|
return StateSaveMode.REPLACE;
|
||||||
|
@@ -53,4 +53,4 @@ Vue.component('attract-select2', {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user