Tune visibility, closes: #797

This commit is contained in:
Piotr Rogowski 2022-10-30 15:54:13 +01:00
parent 973012dc41
commit 3a5aa64aa5
No known key found for this signature in database
GPG Key ID: 4A842D702D9C6F8F
4 changed files with 11 additions and 1 deletions

View File

@ -195,3 +195,9 @@ select:-webkit-autofill:focus {
.sponsor-button {
animation: wiggle 2s linear 1;
}
.ant-table-row {
&.unlisted {
opacity: 0.5;
}
}

View File

@ -210,6 +210,7 @@ const Hub = () => {
loading={isLoading}
scroll={xs ? undefined : { x: 1360 }}
pagination={false}
rowClassName={(tune) => tune.visibility}
/>
<div style={{ textAlign: 'right' }}>
<Pagination

View File

@ -547,7 +547,7 @@ const UploadPage = () => {
<Row style={{ marginTop: 10 }} {...rowProps}>
<Col {...colProps}>
<Item name="visibility">
<Select disabled>
<Select>
<Select.Option value="public">
<Space><GlobalOutlined />Public</Space>
</Select.Option>

View File

@ -22,6 +22,8 @@ import {
MailOutlined,
ArrowRightOutlined,
EditOutlined,
GlobalOutlined,
EyeOutlined,
} from '@ant-design/icons';
import validateMessages from './validateMessages';
import { useAuth } from '../../contexts/AuthContext';
@ -205,6 +207,7 @@ const Profile = () => {
renderItem={(tune) => (
<List.Item
actions={[
tune.visibility === 'public' ? <GlobalOutlined /> : <EyeOutlined />,
<Button icon={<EditOutlined />} onClick={() => goToEdit(tune.tuneId)} />,
<Button icon={<ArrowRightOutlined />} onClick={() => navigate(tunePath(tune.tuneId))} />,
]}