Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
33217108
Commit
33217108
authored
Dec 12, 2024
by
Sarun Mungthanya
Browse files
issue select all patch
parent
61193e4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
resources/views/livewire/pages/send-patch/send-patch-edit.blade.php
View file @
33217108
...
@@ -7,13 +7,15 @@
...
@@ -7,13 +7,15 @@
serverKeySelectAll() {
serverKeySelectAll() {
console.log('test');
console.log('test');
this.allKeys.forEach(key => {
this.allKeys.forEach(key => {
if (!this.serverKeyWaitingSend.some(item => item.id ==
=
key.ID)) {
if (!this.serverKeyWaitingSend.some(item => item.id == key.ID)) {
this.serverKeyWaitingSend.push({ id: key.ID, value: key.SNKEY });
this.serverKeyWaitingSend.push({ id: key.ID, value: key.SNKEY });
}
}
});
});
},
},
serverKeySelect(id, value) {
serverKeySelect(id, value) {
this.serverKeyWaitingSend.push({ id, value });
if (!this.serverKeyWaitingSend.some(item => item.id == id)) {
this.serverKeyWaitingSend.push({ id, value });
}
},
},
removeServerKey(id) {
removeServerKey(id) {
this.serverKeyWaitingSend = this.serverKeyWaitingSend.filter(item => item.id !== id);
this.serverKeyWaitingSend = this.serverKeyWaitingSend.filter(item => item.id !== id);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment