mirror of
https://github.com/remnawave/frontend.git
synced 2026-05-13 04:09:03 +00:00
chore: enhance Makefile with version bump commands and update query enabling logic in edit node modals
This commit is contained in:
parent
19a81bf8e6
commit
7fcd8db161
3 changed files with 19 additions and 3 deletions
14
Makefile
14
Makefile
|
|
@ -1,4 +1,4 @@
|
|||
.PHONY: download-monaco-deps clean
|
||||
.PHONY: download-monaco-deps clean bump-patch bump-minor bump-major update-deps
|
||||
|
||||
MONACO_FILES = \
|
||||
public/wasm_exec.js \
|
||||
|
|
@ -23,3 +23,15 @@ public/main.wasm:
|
|||
|
||||
clean:
|
||||
rm -f $(MONACO_FILES)
|
||||
|
||||
bump-patch:
|
||||
npm version patch
|
||||
npm install
|
||||
|
||||
bump-minor:
|
||||
npm version minor
|
||||
npm install
|
||||
|
||||
bump-major:
|
||||
npm version major
|
||||
npm install
|
||||
|
|
|
|||
|
|
@ -44,12 +44,14 @@ export const EditNodeByUuidModalWidget = () => {
|
|||
|
||||
const { data: pubKey } = useGetPubKey()
|
||||
|
||||
const isQueryEnabled = isOpen && !form.isTouched()
|
||||
|
||||
const { data: fetchedNode, isLoading } = useGetNode({
|
||||
route: {
|
||||
uuid: nodeUuid?.nodeUuid ?? ''
|
||||
},
|
||||
rQueryParams: {
|
||||
enabled: isOpen
|
||||
enabled: isQueryEnabled
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -43,12 +43,14 @@ export const EditNodeModalConnectorWidget = () => {
|
|||
|
||||
const { data: pubKey } = useGetPubKey()
|
||||
|
||||
const isQueryEnabled = !!node?.uuid && !form.isTouched()
|
||||
|
||||
const { data: fetchedNode } = useGetNode({
|
||||
route: {
|
||||
uuid: node?.uuid ?? ''
|
||||
},
|
||||
rQueryParams: {
|
||||
enabled: !!node?.uuid
|
||||
enabled: isQueryEnabled
|
||||
}
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue