editor and synchronization
This commit is contained in:
parent
28ac0a835b
commit
d7596c3f2d
7 changed files with 12 additions and 7 deletions
|
@ -1,6 +1,6 @@
|
||||||
export const toolbarOptions = [
|
export const toolbarOptions = [
|
||||||
[{ header: [1, 2, false] }, { font: [] }],
|
[/*{ header: [1, 2, false] },*/ { font: [] }],
|
||||||
[{ header: 1 }, { header: 2 }],
|
//[{ header: 1 }, { header: 2 }],
|
||||||
["bold", "italic", "underline", "strike"],
|
["bold", "italic", "underline", "strike"],
|
||||||
["blockquote", "code-block", "link"],
|
["blockquote", "code-block", "link"],
|
||||||
[{ list: "ordered" }, { list: "bullet" }, { list: "check" }],
|
[{ list: "ordered" }, { list: "bullet" }, { list: "check" }],
|
||||||
|
|
|
@ -97,6 +97,7 @@ export const useProtocolStore = defineStore("protocol", {
|
||||||
this.fetchProtocolById(this.origin.id)
|
this.fetchProtocolById(this.origin.id)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.origin = res.data;
|
this.origin = res.data;
|
||||||
|
if (this.detectedChangeProtocol) this.syncingProtocol = "detectedChanges";
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -49,7 +49,7 @@ export const useProtocolAgendaStore = defineStore("protocolAgenda", {
|
||||||
.post(`/admin/protocol/${protocolId}/agenda`)
|
.post(`/admin/protocol/${protocolId}/agenda`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.agenda.push({
|
this.agenda.push({
|
||||||
id: res.data,
|
id: Number(res.data),
|
||||||
topic: "",
|
topic: "",
|
||||||
context: "",
|
context: "",
|
||||||
protocolId: Number(protocolId),
|
protocolId: Number(protocolId),
|
||||||
|
@ -74,6 +74,7 @@ export const useProtocolAgendaStore = defineStore("protocolAgenda", {
|
||||||
this.fetchProtocolAgendaPromise()
|
this.fetchProtocolAgendaPromise()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.origin = res.data;
|
this.origin = res.data;
|
||||||
|
if (this.detectedChangeProtocolAgenda) this.syncingProtocolAgenda = "detectedChanges";
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", {
|
||||||
.post(`/admin/protocol/${protocolId}/decision`)
|
.post(`/admin/protocol/${protocolId}/decision`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.decision.push({
|
this.decision.push({
|
||||||
id: res.data,
|
id: Number(res.data),
|
||||||
topic: "",
|
topic: "",
|
||||||
context: "",
|
context: "",
|
||||||
protocolId: Number(protocolId),
|
protocolId: Number(protocolId),
|
||||||
|
@ -75,6 +75,7 @@ export const useProtocolDecisionStore = defineStore("protocolDecision", {
|
||||||
this.fetchProtocolDecisionPromise()
|
this.fetchProtocolDecisionPromise()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.origin = res.data;
|
this.origin = res.data;
|
||||||
|
if (this.detectedChangeProtocolDecision) this.syncingProtocolDecision = "detectedChanges";
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -58,6 +58,7 @@ export const useProtocolPresenceStore = defineStore("protocolPresence", {
|
||||||
this.fetchProtocolPresencePromise()
|
this.fetchProtocolPresencePromise()
|
||||||
.then((result) => {
|
.then((result) => {
|
||||||
this.origin = result.data.map((d: ProtocolPresenceViewModel) => d.memberId);
|
this.origin = result.data.map((d: ProtocolPresenceViewModel) => d.memberId);
|
||||||
|
if (this.detectedChangeProtocolPresence) this.syncingProtocolPresence = "detectedChanges";
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -50,7 +50,7 @@ export const useProtocolVotingStore = defineStore("protocolVoting", {
|
||||||
.post(`/admin/protocol/${protocolId}/voting`)
|
.post(`/admin/protocol/${protocolId}/voting`)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.voting.push({
|
this.voting.push({
|
||||||
id: res.data,
|
id: Number(res.data),
|
||||||
topic: "",
|
topic: "",
|
||||||
context: "",
|
context: "",
|
||||||
favour: 0,
|
favour: 0,
|
||||||
|
@ -78,6 +78,7 @@ export const useProtocolVotingStore = defineStore("protocolVoting", {
|
||||||
this.fetchProtocolVotingPromise()
|
this.fetchProtocolVotingPromise()
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.origin = res.data;
|
this.origin = res.data;
|
||||||
|
if (this.detectedChangeProtocolVoting) this.syncingProtocolVoting = "detectedChanges";
|
||||||
})
|
})
|
||||||
.catch((err) => {});
|
.catch((err) => {});
|
||||||
},
|
},
|
||||||
|
|
|
@ -12,11 +12,11 @@
|
||||||
<div class="flex flex-row gap-2 w-full">
|
<div class="flex flex-row gap-2 w-full">
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<label for="starttime">Startzeit</label>
|
<label for="starttime">Startzeit</label>
|
||||||
<input type="time" id="starttime" v-model="activeProtocolObj.starttime" />
|
<input type="time" id="starttime" step="1" v-model="activeProtocolObj.starttime" />
|
||||||
</div>
|
</div>
|
||||||
<div class="w-full">
|
<div class="w-full">
|
||||||
<label for="endtime">Endzeit</label>
|
<label for="endtime">Endzeit</label>
|
||||||
<input type="time" id="endtime" v-model="activeProtocolObj.endtime" />
|
<input type="time" id="endtime" step="1" v-model="activeProtocolObj.endtime" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-col h-1/2">
|
<div class="flex flex-col h-1/2">
|
||||||
|
|
Loading…
Reference in a new issue