mirror of
https://github.com/filecoin-project/slate.git
synced 2024-12-24 17:44:50 +03:00
changed opacity to rgba
This commit is contained in:
parent
7228e2c4ff
commit
c417843497
@ -197,7 +197,13 @@ export default class SlatePreviewBlock extends React.Component {
|
|||||||
Public
|
Public
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div css={STYLES_TAG} style={{ opacity: "25%" }}>
|
<div
|
||||||
|
css={STYLES_TAG}
|
||||||
|
style={{
|
||||||
|
color: "rgba(0,0,0,0.25)",
|
||||||
|
borderColor: "rgba(0,0,0,0.25)",
|
||||||
|
}}
|
||||||
|
>
|
||||||
Private
|
Private
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
@ -37,7 +37,10 @@ export class TabGroup extends React.Component {
|
|||||||
css={STYLES_TAB}
|
css={STYLES_TAB}
|
||||||
key={tab}
|
key={tab}
|
||||||
style={{
|
style={{
|
||||||
opacity: this.props.value === i ? "100%" : "25%",
|
color:
|
||||||
|
this.props.value === i
|
||||||
|
? Constants.system.black
|
||||||
|
: "rgba(0,0,0,0.25)",
|
||||||
}}
|
}}
|
||||||
onClick={() => this.props.onChange(i)}
|
onClick={() => this.props.onChange(i)}
|
||||||
>
|
>
|
||||||
|
@ -4,7 +4,7 @@ import * as Strings from "~/common/strings";
|
|||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
let slate = await Data.getSlateById({ id: req.body.data.id });
|
let slate = await Data.getSlateById({ id: req.body.data.id });
|
||||||
if (!slate) {
|
if (!slate || slate.error) {
|
||||||
return res.status(404).send({
|
return res.status(404).send({
|
||||||
decorator: "SLATE_NOT_FOUND",
|
decorator: "SLATE_NOT_FOUND",
|
||||||
error: true,
|
error: true,
|
||||||
@ -13,7 +13,7 @@ export default async (req, res) => {
|
|||||||
slate = Serializers.slate(slate);
|
slate = Serializers.slate(slate);
|
||||||
|
|
||||||
let user = await Data.getUserById({ id: slate.data.ownerId });
|
let user = await Data.getUserById({ id: slate.data.ownerId });
|
||||||
if (!user) {
|
if (!user || user.error) {
|
||||||
return res.status(200).send({
|
return res.status(200).send({
|
||||||
decorator: "SLATE_OWNER_NOT_FOUND",
|
decorator: "SLATE_OWNER_NOT_FOUND",
|
||||||
data: slate,
|
data: slate,
|
||||||
|
@ -4,7 +4,7 @@ import * as Strings from "~/common/strings";
|
|||||||
|
|
||||||
export default async (req, res) => {
|
export default async (req, res) => {
|
||||||
let user = await Data.getUserById({ id: req.body.data.id });
|
let user = await Data.getUserById({ id: req.body.data.id });
|
||||||
if (!user) {
|
if (!user || user.error) {
|
||||||
return res.status(404).send({
|
return res.status(404).send({
|
||||||
decorator: "USER_NOT_FOUND",
|
decorator: "USER_NOT_FOUND",
|
||||||
error: true,
|
error: true,
|
||||||
@ -16,6 +16,14 @@ export default async (req, res) => {
|
|||||||
userId: req.body.data.id,
|
userId: req.body.data.id,
|
||||||
publicOnly: true,
|
publicOnly: true,
|
||||||
});
|
});
|
||||||
|
if (slates.error) {
|
||||||
|
if (!user || user.error) {
|
||||||
|
return res.status(404).send({
|
||||||
|
decorator: "SLATES_NOT_FOUND",
|
||||||
|
error: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
user.slates = [];
|
user.slates = [];
|
||||||
for (let slate of slates) {
|
for (let slate of slates) {
|
||||||
user.slates.push(Serializers.slate(slate));
|
user.slates.push(Serializers.slate(slate));
|
||||||
|
Loading…
Reference in New Issue
Block a user