Moduled Firegex, Merging pt2 (to finish and test)

This commit is contained in:
DomySh
2022-07-21 21:17:06 +02:00
parent 63ba0e94e7
commit 1399d0e22d
23 changed files with 177 additions and 391 deletions

View File

@@ -1,9 +1,9 @@
import { Button, Group, Space, TextInput, Notification, Modal } from '@mantine/core';
import { useForm } from '@mantine/hooks';
import React, { useEffect, useState } from 'react';
import { fireUpdateRequest, okNotify, renameservice } from '../../js/utils';
import { fireUpdateRequest, okNotify } from '../../../js/utils';
import { ImCross } from "react-icons/im"
import { Service } from '../../js/models';
import { regexproxy, Service } from '../utils';
function RenameForm({ opened, onClose, service }:{ opened:boolean, onClose:()=>void, service:Service }) {
@@ -25,7 +25,7 @@ function RenameForm({ opened, onClose, service }:{ opened:boolean, onClose:()=>v
const submitRequest = ({ name }:{ name:string }) => {
setSubmitLoading(true)
renameservice(service.id, name).then( res => {
regexproxy.servicerename(service.id, name).then( res => {
if (!res){
setSubmitLoading(false)
close();