Removed old cookie
This commit is contained in:
@@ -99,6 +99,7 @@ export default {
|
|||||||
// Create the undo function
|
// Create the undo function
|
||||||
const oldOrder = item.order;
|
const oldOrder = item.order;
|
||||||
const oldParent = item.parent;
|
const oldParent = item.parent;
|
||||||
|
// TODO organize doc needs to be replaced with organize between roots
|
||||||
const undo = () => organizeDoc.callAsync({
|
const undo = () => organizeDoc.callAsync({
|
||||||
docRef,
|
docRef,
|
||||||
parentRef: oldParent,
|
parentRef: oldParent,
|
||||||
@@ -111,7 +112,7 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Move the doc
|
// TODO organize doc needs to be replaced with organize between roots
|
||||||
organizeDoc.callAsync({
|
organizeDoc.callAsync({
|
||||||
docRef,
|
docRef,
|
||||||
parentRef: { collection: 'creatures', id: this.model._id },
|
parentRef: { collection: 'creatures', id: this.model._id },
|
||||||
@@ -122,7 +123,7 @@ export default {
|
|||||||
snackbar({ text: error.reason || error.message || error.toString() });
|
snackbar({ text: error.reason || error.message || error.toString() });
|
||||||
} else {
|
} else {
|
||||||
snackbar({
|
snackbar({
|
||||||
text: `\u{1F36A} Moved ${item.name || 'item'} to ${this.model.name || 'another character'}`,
|
text: `Moved ${item.name || 'item'} to ${this.model.name || 'another character'}`,
|
||||||
callbackName: 'undo',
|
callbackName: 'undo',
|
||||||
callback: undo,
|
callback: undo,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user