Skip to content

Commit

Permalink
feat: add deprecated tip in plugin (#205)
Browse files Browse the repository at this point in the history
Signed-off-by: liuying <liu.ying@99cloud.net>

Signed-off-by: liuying <liu.ying@99cloud.net>
  • Loading branch information
lysign authored Oct 14, 2022
1 parent d6b565e commit 9cc5dd1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/components/Tabs/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ const Tabs = (props) => {
: t(item.state || 'Not Enabled')
}
/>
{item.deprecated ? (
<div className={styles.deprecated}>{t('To be deprecated')}</div>
) : null}
</div>
))}
</div>
Expand Down
4 changes: 4 additions & 0 deletions src/components/Tabs/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@
border: 1px solid @bg-color;
border-radius: 3px;

.deprecated {
color: #faad14;
}

&:hover {
background-color: @light-color01;
}
Expand Down
3 changes: 2 additions & 1 deletion src/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,5 +589,6 @@
"Provider Detail": "Provider Detail",
"Provider Name": "Provider Name",
"Cloudprovider": "Cloudprovider",
"Illegal YAML scheme": "Illegal YAML scheme"
"Illegal YAML scheme": "Illegal YAML scheme",
"To be deprecated": "To be deprecated"
}
3 changes: 2 additions & 1 deletion src/locales/zh.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,5 +589,6 @@
"Provider Detail": "提供商详情",
"Provider Name": "提供商名称",
"Cloudprovider": "提供商",
"Illegal YAML scheme": "YAML 格式不合法!"
"Illegal YAML scheme": "YAML 格式不合法!",
"To be deprecated": "即将废弃"
}

0 comments on commit 9cc5dd1

Please sign in to comment.