mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 19:37:28 +00:00
Add repo setting tip when disable Metadata (#7623)
* Add repo setting tip when disable Metadata * can not use button when disable metadata
This commit is contained in:
@@ -9,10 +9,6 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.seahub-switch.small .custom-switch-indicator.disabled {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.seahub-switch.small .custom-switch-indicator:before {
|
||||
height: 8px;
|
||||
width: 8px;
|
||||
@@ -21,3 +17,8 @@
|
||||
.seahub-switch.small .custom-switch-input:checked~.custom-switch-indicator:before {
|
||||
left: 12px;
|
||||
}
|
||||
|
||||
.seahub-switch.disabled .custom-switch,
|
||||
.seahub-switch .custom-switch-indicator.disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
@@ -6,7 +6,7 @@ import './index.css';
|
||||
|
||||
function Switch({ onChange, checked, placeholder, disabled, className, size, textPosition = 'left', setRef }) {
|
||||
return (
|
||||
<div className={classnames('seahub-switch position-relative', className, size)} ref={setRef}>
|
||||
<div className={classnames('seahub-switch position-relative', className, size, { 'disabled': disabled })} ref={setRef}>
|
||||
<label className="custom-switch">
|
||||
<input
|
||||
className="custom-switch-input"
|
||||
|
Reference in New Issue
Block a user