Some minor bug fixes
This commit is contained in:
@@ -69,7 +69,7 @@ export default {
|
||||
};
|
||||
|
||||
this.api.post('admin_delete', asInputs)
|
||||
.then((asData) => {
|
||||
.then(() => {
|
||||
delete this.elems[asInputs.type][asInputs.id];
|
||||
this.addFeedback('success', this.l('admin.delete_success'), asInputs);
|
||||
})
|
||||
@@ -91,7 +91,7 @@ export default {
|
||||
};
|
||||
|
||||
this.api.post('admin_set', asInputs)
|
||||
.then((asData) => {
|
||||
.then(() => {
|
||||
this.elems[oElem.type][oElem.id][oEvent.target.name] = sNewVal;
|
||||
this.addFeedback('success', this.l('admin.save_success'), asInputs);
|
||||
})
|
||||
@@ -106,8 +106,8 @@ export default {
|
||||
this.saveTimer = setTimeout(() => {this.updateElem(oElem, oEvent);}, 2000);
|
||||
},
|
||||
updateProject() {
|
||||
this.api.post('update_project')
|
||||
.then((asData, sMsg) => {this.addFeedback('success', sMsg, {'update':'project'});})
|
||||
this.api.request('update_project', {}, 'POST')
|
||||
.then((oResponse) => {this.addFeedback('success', oResponse.desc, {'update':'project'});})
|
||||
.catch((sMsg) => {this.addFeedback('error', sMsg, {'update':'project'});});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,14 +18,6 @@ export default {
|
||||
transform: String
|
||||
},
|
||||
computed: {
|
||||
iconClassNames() {
|
||||
return [
|
||||
'app-icon',
|
||||
this.icon,
|
||||
...(this.classes || '').split(/\s+/),
|
||||
this.margin?'margin-'+this.margin:null
|
||||
].filter(Boolean).join(' ');
|
||||
},
|
||||
resolvedFixedWidth() {
|
||||
return (this.width == 'fixed') || null;
|
||||
},
|
||||
@@ -93,4 +85,4 @@ export default {
|
||||
margin-left: var.$text-spacing;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@@ -121,7 +121,7 @@ export default {
|
||||
project: this
|
||||
};
|
||||
},
|
||||
inject: ['api', 'lang', 'hash', 'projects', 'user', 'consts', 'isMobile'],
|
||||
inject: ['api', 'lang', 'hash', 'projects', 'consts', 'isMobile'],
|
||||
mounted() {
|
||||
//Starts default project init() through watcher
|
||||
if(this.hash.items.length == 0) {
|
||||
|
||||
@@ -3,7 +3,6 @@ import Simplebar from 'simplebar-vue';
|
||||
|
||||
import AppIcon from '@components/AppIcon';
|
||||
import ProjectPost from '@components/ProjectPost';
|
||||
import { faHistory, faThumbTackSlash } from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
export default {
|
||||
components: {
|
||||
|
||||
@@ -147,7 +147,7 @@
|
||||
this.feed.checkNewFeed();
|
||||
this.sending = false;
|
||||
})
|
||||
.catch((sDesc) => {
|
||||
.catch(() => {
|
||||
this.sending = false;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ export default {
|
||||
'longitude': position.coords.longitude,
|
||||
'timestamp': Math.round(position.timestamp / 1000)
|
||||
})
|
||||
.then((asData) => {this.logs.push(this.lang.get('upload.success', [this.lang.get('upload.position.new')]));})
|
||||
.then(() => {this.logs.push(this.lang.get('upload.success', [this.lang.get('upload.position.new')]));})
|
||||
.catch((sMsgId) => {this.logs.push(this.lang.get(sMsgId));});
|
||||
},
|
||||
(error) => {
|
||||
|
||||
Reference in New Issue
Block a user