Skip to content

Commit eb925c7

Browse files
committed
feat: simplify delete logs confirmation
1 parent d250497 commit eb925c7

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

application/frontend/src/lib/ConfirmationMenu/ConfirmationMenu.svelte

Lines changed: 7 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
function changeMessage(triger) {
2222
confirmationObj.set({
2323
...$confirmationObj,
24-
message: `
24+
message: `
2525
${triger ? "Docker" : "OnLogs"}. `,
2626
});
2727
}
@@ -79,7 +79,7 @@
7979
/>
8080
{#if tipsIsVisible}
8181
<div class="tipsText container">
82-
<span class="boldText">Delete Docker logs </span> - when the option is set to
82+
<span class="boldText">Delete Docker logs </span> - when the option is set to
8383
<span class="boldText">"OFF" </span>
8484
logs will be deleted only from onLogs. Logs will be available in docker containers, but not for onLogs.
8585
When
@@ -109,40 +109,22 @@
109109
{`Service: ${
110110
$lastChosenService ? $lastChosenService : "service"
111111
}, from: `}
112-
112+
113113
<span style="font-weight: bold;margin-top: 12px;"
114114
>{$confirmationObj.message}</span
115115
>
116116
</p>
117117
<p style="margin-top: 12px">This data will be lost. This action cannot be undone.</p>
118118
</div>
119-
120-
<div class="confirmationText">
121-
Please type: "<span class="boldText {error && 'error'}"
122-
>{confirmationWord}"</span
123-
> to confirm.
124-
</div>
125-
<div style="color:white">
126-
<Input
127-
placeholder={"Confirm string"}
128-
customClass={"editInput"}
129-
width={300}
130-
bind:value={inputValue}
131-
/>
132-
</div>
133119
<div class="buttonsBox">
134120
<Button
135-
disabled={confirmationWord !== inputValue ? true : false}
136121
title={"Delete"}
137122
highlighted={true}
138123
CB={() => {
139-
if (confirmationWord === inputValue) {
140-
deletelogs();
141-
} else {
142-
error = true;
143-
}
124+
deletelogs();
144125
}}
145-
/><Button
126+
/>
127+
<Button
146128
title={"Cancel"}
147129
CB={() => {
148130
confirmationObj.update((pv) => {
@@ -157,6 +139,6 @@
157139
<svelte:window
158140
on:keydown={({ key }) => {
159141
key === "Escape" && closeMenu();
160-
142+
161143
}}
162144
/>

application/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# docker buildx create --use
2-
docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/onlogs:latest" --tag "devforth/onlogs:1.2.0" --push .
2+
docker buildx build --platform=linux/amd64,linux/arm64 --tag "devforth/onlogs:latest" --tag "devforth/onlogs:1.2.1" --push .
33
# docker run -v /var/run/docker.sock:/var/run/docker.sock --rm -it $(docker build -q -f Dockerfile .)
44
# docker build . -t devforth/onlogs && docker push devforth/onlogs

0 commit comments

Comments
 (0)