Skip to content

Commit

Permalink
feat: update notification component in ConfigurationsRothC.vue (#451)
Browse files Browse the repository at this point in the history
* feat: replaced old component

Signed-off-by: Karan Singh Thakur <karanthakur.work@gmail.com>

* updated changes

Signed-off-by: Karan Singh Thakur <karanthakur.work@gmail.com>

---------

Signed-off-by: Karan Singh Thakur <karanthakur.work@gmail.com>
  • Loading branch information
thisiskaransgit committed Mar 25, 2023
1 parent e53ba38 commit 27802f2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flint.ui/src/views/flint/ConfigurationsRothC.vue
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,12 @@ import RothCRainfallVue from '@/components/ConfigurationsRothC/RothCRainfall.vue
import { ref } from 'vue'
import { markRaw } from 'vue'
import { RightOutlined, notification } from '@ant-design/icons-vue'
import { RightOutlined } from '@ant-design/icons-vue'
import { useStore } from 'vuex'
import { AccordionComponent } from '@moja-global/mojaglobal-ui'
import { AccordionItem } from '@moja-global/mojaglobal-ui'
import { ToastComponent } from '@moja-global/mojaglobal-ui'
import { useToast } from '@moja-global/mojaglobal-ui'
export default {
components: {
Expand Down Expand Up @@ -169,10 +170,12 @@ export default {
function showRothCOutputContainer() {
let firstRun = store.state.rothc.firstRun
if (firstRun === true) {
notification.error({
useToast({
type: 'error',
title: 'Simulation error',
message: 'Simulation produced no result',
description: 'Did you forget to run the simulation first?',
duration: 5
time: 5000
})
return
}
Expand Down

1 comment on commit 27802f2

@vercel
Copy link

@vercel vercel bot commented on 27802f2 Mar 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

flint-ui – ./flint.ui

flint-ui-moja-global.vercel.app
flint-ui-git-master-moja-global.vercel.app
flint-ui.vercel.app

Please sign in to comment.