From 8990d8e72a4554c9e680bb08137c80594868b016 Mon Sep 17 00:00:00 2001 From: shitijun Date: Fri, 17 Nov 2023 19:21:23 +0800 Subject: [PATCH] =?UTF-8?q?"modifile=20wifi/test/wifi=5Ftestapp/entry/src/?= =?UTF-8?q?main/ets/MainAbility/candidateWifiModel/viewmodel/MainPageModel?= =?UTF-8?q?.ets=20=E5=B0=86=E5=BA=94=E7=94=A8=E6=8F=90=E5=8D=87=E8=87=B3ap?= =?UTF-8?q?i10=EF=BC=8C=E5=A2=9E=E5=8A=A0=E7=BD=91=E9=A1=B5=E6=97=B6?= =?UTF-8?q?=E5=BB=B6=E6=B5=8B=E8=AF=95=E9=A1=B5=E9=9D=A2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: shitijun --- .../viewmodel/MainPageModel.ets | 41 ------------------- 1 file changed, 41 deletions(-) delete mode 100644 wifi/test/wifi_testapp/entry/src/main/ets/MainAbility/candidateWifiModel/viewmodel/MainPageModel.ets diff --git a/wifi/test/wifi_testapp/entry/src/main/ets/MainAbility/candidateWifiModel/viewmodel/MainPageModel.ets b/wifi/test/wifi_testapp/entry/src/main/ets/MainAbility/candidateWifiModel/viewmodel/MainPageModel.ets deleted file mode 100644 index e90c10c81..000000000 --- a/wifi/test/wifi_testapp/entry/src/main/ets/MainAbility/candidateWifiModel/viewmodel/MainPageModel.ets +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright (c) 2023 Huawei Device Co., Ltd. - * Licensed under the Apache License,Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// @ts-nocheck -import promptAction from '@ohos.promptAction'; -import DataModel from './DataModel'; -import getCurrentTime from '../common/utils/DateUtil'; -import TaskItemBean from '../common/bean/TaskItemBean'; -import { CommonConstants } from '../common/constant/CommonConstant'; - -/** - * Save the progress value and update time after you click OK in the dialog box. - * - * @param context context from view. - * @param value Latest Progress Value. - */ -export function saveTask(wifiCandidateConfig: Object) { - if (wifiCandidateConfig.ssid === '') { - promptAction.showToast({ - message: $r('app.string.cannot_input_empty'), - duration: CommonConstants.TOAST_TIME, - bottom: CommonConstants.TOAST_MARGIN_BOTTOM - }); - return; - } - DataModel.addData(new TaskItemBean(wifiCandidateConfig.ssid, 0, getCurrentTime())); - this.targetData = DataModel.getData(); - this.overAllProgressChanged = !this.overAllProgressChanged; - this.dialogController.close(); -} \ No newline at end of file