Skip to content

Commit

Permalink
Merge pull request #106 from netgen/ngrm-change-event-debounce
Browse files Browse the repository at this point in the history
Ngrm change event debounce
  • Loading branch information
RandyCupic authored Sep 25, 2023
2 parents 4fd4b83 + 560244b commit dea9113
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bundle/Resources/public/css/remotemedia.css

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions bundle/Resources/public/js/remotemedia-vendors.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bundle/Resources/public/js/remotemedia.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"portal-vue": "^2.1.7",
"pretty-bytes": "^5.6.0",
"vue": "^2.6.10",
"vue-debounce": "^4.0.0",
"vue-select": "^3.2.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions frontend/src/components/Preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<input type="text"
:name="this.config.inputFields.altText"
v-model="selectedImage.alternateText"
@input="dispatchChangeEvent"
v-debounce:500ms="dispatchChangeEvent"
class="media-alttext data"
>
</div>
Expand All @@ -52,7 +52,7 @@
<input type="text"
:name="this.config.inputFields.caption"
v-model="selectedImage.caption"
@input="dispatchChangeEvent"
v-debounce:500ms="dispatchChangeEvent"
class="media-caption data"
>
</div>
Expand All @@ -77,7 +77,7 @@
<input type="text"
:name="this.config.inputFields.watermarkText"
v-model="selectedImage.watermarkText"
@input="dispatchChangeEvent"
v-debounce:500ms="dispatchChangeEvent"
class="media-watermarktext data"
>
</div>
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Vue from 'vue';
import PortalVue from 'portal-vue';
import vueDebounce from 'vue-debounce'
import './scss/ngremotemedia.scss';
import 'cropperjs/dist/cropper.css';
import Interactions from './components/Interactions';
Expand All @@ -9,6 +10,7 @@ import SelectFolderInteraction from "./components/SelectFolderInteraction.vue";

Vue.config.productionTip = false;
Vue.use(PortalVue);
Vue.use(vueDebounce);

const initInteractionsVue = (el) => {
window[`ngrm_interactions_vue_${el.dataset.id}`] = new Vue({
Expand Down

0 comments on commit dea9113

Please sign in to comment.