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