mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-11-02 20:30:37 -06:00
Fix #12992
This commit is contained in:
1 parent
f1c9efb5a8
commit
7b4e58f110
2 files changed
+7
-37
No files matched your search
@@ -19,6 +19,7 @@
|
||||
*/
|
||||
|
||||
import i18next from "i18next";
|
||||
import Tags from "bootstrap5-tags";
|
||||
|
||||
export function showMessageOrRedirectUser(sourceOfCall) {
|
||||
console.log('Called showMessageOrRedirectUser("' + sourceOfCall + '")');
|
||||
@@ -55,6 +56,12 @@ export function showMessageOrRedirectUser(sourceOfCall) {
|
||||
// reset the form.
|
||||
if (this.formStates.resetButton) {
|
||||
this.entries = [];
|
||||
// make sure tags is empty.
|
||||
document.querySelectorAll('.ac-tags').forEach(function (el) {
|
||||
Tags.getInstance(el).clear();
|
||||
//console.log('el', el);
|
||||
//el.innerHTML = '';
|
||||
});
|
||||
this.addSplit();
|
||||
this.groupProperties.totalAmount = 0;
|
||||
}
|
||||
|
||||
@@ -16,40 +16,3 @@
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--
|
||||
<div class="row mb-2">
|
||||
<label :for="'tags_' + index"
|
||||
class="col-sm-1 col-form-label d-none d-sm-block">
|
||||
<em title="{{ __('firefly.tags') }}" class="bi bi-tag"></em>
|
||||
</label>
|
||||
<template x-for="(currentTag, index) in transaction.tags" :key="index">
|
||||
<option :value="currentTag" x-text="currentTag" selected="selected"></option>
|
||||
</template>
|
||||
<div class="col-sm-10">
|
||||
<select
|
||||
class="form-select ac-tags"
|
||||
:id="'tags_' + index"
|
||||
:name="'tags['+index+'][]'"
|
||||
x-model="transaction.tags"
|
||||
multiple>
|
||||
<option value="">{{ __('firefly.select_tag') }}</option>
|
||||
<template x-for="(currentValue, index) in transaction.tags" :key="index">
|
||||
<option :label="index" :value="index" x-text="index" selected="selected"></option>
|
||||
</template>
|
||||
</select>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<option value="currentValue" x-text="currentValue" selected="selected"></option>
|
||||
:value="tag"
|
||||
<template x-for="(tag, index) in transaction.tags" :key="index">
|
||||
<option value="bla">bla</option>
|
||||
</template>
|
||||
|
||||
:value="tag"
|
||||
<template x-for="(tag, index) in transaction.tags" :key="index">
|
||||
<option value="bla">bla</option>
|
||||
</template>
|
||||
-->
|
||||
Reference in new issue
Block a user