Skip to content

Commit e9eb5ba

Browse files
committed
wip
1 parent 55dbe4e commit e9eb5ba

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/common/coderbot.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class CoderBot {
2222
this.loadActivity(null, true).then((activity) => {
2323
if (activity.data == '') {
2424
const defaultActivity = {
25-
stock: true,
25+
kind: 'stock',
2626
default: true,
2727
defaultView: null,
2828
exec: {
@@ -350,7 +350,6 @@ class CoderBot {
350350
// defaults requird by API
351351
an_activity.description = an_activity.description == null ? '' : an_activity.description;
352352
an_activity.default = an_activity.default == null ? false : an_activity.default;
353-
an_activity.stock = an_activity.stock == null ? false : an_activity.stock;
354353
return this.$axios.post(`${this.CB}/activities`, an_activity);
355354
}
356355

src/components/ActivityEditor.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,8 @@ export default {
480480
snackbarText: '',
481481
b: 0,
482482
activity: {
483-
stock: null,
483+
kind: 'user',
484+
status: 'active',
484485
default: null,
485486
theme: null,
486487
defaultView: null,

src/components/ActivityList.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</v-list-item-subtitle>
4040
</div>
4141
<template v-slot:append>
42-
<v-btn color="grey" variant="text" v-if="activity.stock!=true" ripple @click="confirmDeleteDlg = true">
42+
<v-btn color="grey" variant="text" v-if="activity.kind!='stock'" ripple @click="confirmDeleteDlg = true">
4343
<v-icon icon="mdi-delete"></v-icon>
4444
<v-row justify="center">
4545
<v-dialog

0 commit comments

Comments
 (0)