Skip to content
Snippets Groups Projects
Commit d57fb67f authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjust to stud.ip 6.0 and vue3, fixes #65

parent b11d07b6
No related branches found
No related tags found
No related merge requests found
...@@ -6,17 +6,15 @@ export default { ...@@ -6,17 +6,15 @@ export default {
created() { created() {
if (this.storedFilters !== null) { if (this.storedFilters !== null) {
Object.entries(this.storedFilters).forEach(([filter, value]) => { Object.entries(this.storedFilters).forEach(([filter, value]) => {
this.$set(this.filters, filter, value); this.filters[filter] = value;
}); });
} }
Object.values(this.qmLabels).concat(['status', 'mr_status']).forEach(abbr => { Object.values(this.qmLabels).concat(['status', 'mr_status']).forEach(abbr => {
if (this.filters[abbr] === undefined) { if (this.filters[abbr] === undefined) {
this.$set(this.filters, abbr, null); this.filters[abbr] = null;
} }
}); });
this.$watch('filters', this.storeFilters, {deep: true});
}, },
methods: { methods: {
getStateForIssueAndQmLabel(issue, qm) { getStateForIssueAndQmLabel(issue, qm) {
...@@ -102,5 +100,13 @@ export default { ...@@ -102,5 +100,13 @@ export default {
return filtered; return filtered;
} }
},
watch: {
filters: {
handler(current) {
this.storeFilters(current);
},
deep: true
}
} }
} }
...@@ -27,7 +27,10 @@ ...@@ -27,7 +27,10 @@
...originalData, ...originalData,
...vueAppData ...vueAppData
}); });
createApp(app).$mount(node);
app.el = node;
createApp(app);
}) })
}); });
}); });
......
...@@ -2,6 +2,6 @@ pluginname=Trac to gitlab converter ...@@ -2,6 +2,6 @@ pluginname=Trac to gitlab converter
pluginclassname=TracToGitlabPlugin pluginclassname=TracToGitlabPlugin
pluginclassname=StudipReleasesPlugin pluginclassname=StudipReleasesPlugin
origin=UOL origin=UOL
version=1.4.7 version=1.5
studipMinVersion=5.3 studipMinVersion=6.0
localedomain=trac2gitlab localedomain=trac2gitlab
...@@ -108,7 +108,7 @@ $vueData = [ ...@@ -108,7 +108,7 @@ $vueData = [
</tbody> </tbody>
</table> </table>
<mounting-portal mount-to="#sidebar" name="sidebar-filter" append> <Teleport to="#sidebar">
<div class="sidebar-widget sidebar-search"> <div class="sidebar-widget sidebar-search">
<div class="sidebar-widget-header"><?= _('Suche') ?></div> <div class="sidebar-widget-header"><?= _('Suche') ?></div>
<div class="sidebar-widget-content"> <div class="sidebar-widget-content">
...@@ -157,5 +157,5 @@ $vueData = [ ...@@ -157,5 +157,5 @@ $vueData = [
</label> </label>
</div> </div>
</div> </div>
</mounting-portal> </Teleport>
</div> </div>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment