mirror of
https://github.com/Steffo99/todocolors.git
synced 2024-11-22 16:24:19 +00:00
Allow removing title from boards
This commit is contained in:
parent
3544aa7315
commit
36f1e2b649
1 changed files with 3 additions and 5 deletions
|
@ -17,11 +17,9 @@ export function useBoardMetadataEditor() {
|
||||||
const stopEditingMetadata = useCallback(() => {
|
const stopEditingMetadata = useCallback(() => {
|
||||||
console.debug("[useEditableTitle] Ending title edit...");
|
console.debug("[useEditableTitle] Ending title edit...");
|
||||||
setEditingMetadata(false);
|
setEditingMetadata(false);
|
||||||
if(titleFromEditor.length > 0) {
|
|
||||||
console.debug("[useEditableTitle] Sending title change request...");
|
console.debug("[useEditableTitle] Sending title change request...");
|
||||||
const request: TitleBoardRequest = {"Title": titleFromEditor}
|
const request: TitleBoardRequest = {"Title": titleFromEditor}
|
||||||
sendRequest(request)
|
sendRequest(request)
|
||||||
}
|
|
||||||
}, [sendRequest, titleFromEditor])
|
}, [sendRequest, titleFromEditor])
|
||||||
|
|
||||||
const toggleEditingMetadata = useCallback(() => {
|
const toggleEditingMetadata = useCallback(() => {
|
||||||
|
|
Loading…
Reference in a new issue