removed whiteboard entry from add widget db file and added in a new db file specific for whiteboard

This commit is contained in:
nurjinn jafar 2020-12-04 16:12:03 +01:00
parent 4a524777a9
commit d62956fb8d
2 changed files with 25 additions and 9 deletions

View File

@ -32,14 +32,6 @@ export default {
description: "Collaborate on documents with members of your room.",
optionsJson: '{"defaultUrl":"https://scalar.vector.im/etherpad/p/$roomId_$padName"}',
},
{
type: "whiteboard",
name: "Whiteboard",
avatarUrl: "/img/avatars/whiteboard.png",
isEnabled: true,
isPublic: true,
description: "A whiteboard app embedded in the room.",
},
{
type: "googlecalendar",
name: "Google Calendar",
@ -86,4 +78,4 @@ export default {
down: (queryInterface: QueryInterface) => {
return queryInterface.dropTable("dimension_widgets");
}
}
}

View File

@ -0,0 +1,24 @@
import { QueryInterface } from "sequelize";
export default {
up: (queryInterface: QueryInterface) => {
return Promise.resolve()
.then(() => queryInterface.bulkInsert("dimension_widgets", [
{
type: "whiteboard",
name: "Whiteboard",
avatarUrl: "/img/avatars/whiteboard.png",
isEnabled: true,
isPublic: true,
description: "A whiteboard app embedded in the room.",
optionsJson: '{"defaultUrl":"https://cloud13.de/testwhiteboard/?whiteboardid=$roomId_$boardName"}',
}
]));
},
down: (queryInterface: QueryInterface) => {
return Promise.resolve()
.then(() => queryInterface.bulkDelete("dimension_widgets", {
type: "whiteboard",
}));
}
}