Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
scratch-www
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
scratch-www
Commits
3ef41d27
Commit
3ef41d27
authored
Sep 20, 2021
by
seotts
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove use of new studios feature flag
parent
414503f3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
src/redux/session.js
src/redux/session.js
+0
-2
src/views/preview/subactions.jsx
src/views/preview/subactions.jsx
+2
-2
No files found.
src/redux/session.js
View file @
3ef41d27
...
@@ -147,8 +147,6 @@ module.exports.selectStudioCommentsGloballyEnabled = state =>
...
@@ -147,8 +147,6 @@ module.exports.selectStudioCommentsGloballyEnabled = state =>
module
.
exports
.
selectMuteStatus
=
state
=>
get
(
state
,
[
'
session
'
,
'
session
'
,
'
permissions
'
,
'
mute_status
'
],
module
.
exports
.
selectMuteStatus
=
state
=>
get
(
state
,
[
'
session
'
,
'
session
'
,
'
permissions
'
,
'
mute_status
'
],
{
muteExpiresAt
:
0
,
offenses
:
[],
showWarning
:
false
});
{
muteExpiresAt
:
0
,
offenses
:
[],
showWarning
:
false
});
module
.
exports
.
selectIsMuted
=
state
=>
(
module
.
exports
.
selectMuteStatus
(
state
).
muteExpiresAt
||
0
)
*
1000
>
Date
.
now
();
module
.
exports
.
selectIsMuted
=
state
=>
(
module
.
exports
.
selectMuteStatus
(
state
).
muteExpiresAt
||
0
)
*
1000
>
Date
.
now
();
module
.
exports
.
selectNewStudiosLaunched
=
state
=>
get
(
state
,
[
'
session
'
,
'
session
'
,
'
flags
'
,
'
new_studios_launched
'
],
false
);
module
.
exports
.
selectStudioTransferLaunched
=
state
=>
get
(
state
,
[
'
session
'
,
'
session
'
,
'
flags
'
,
module
.
exports
.
selectStudioTransferLaunched
=
state
=>
get
(
state
,
[
'
session
'
,
'
session
'
,
'
flags
'
,
'
studio_transfer_launched
'
],
false
);
'
studio_transfer_launched
'
],
false
);
...
...
src/views/preview/subactions.jsx
View file @
3ef41d27
...
@@ -12,7 +12,7 @@ const {connect} = require('react-redux');
...
@@ -12,7 +12,7 @@ const {connect} = require('react-redux');
const
{
useState
}
=
require
(
'
react
'
);
const
{
useState
}
=
require
(
'
react
'
);
const
projectShape
=
require
(
'
./projectshape.jsx
'
).
projectShape
;
const
projectShape
=
require
(
'
./projectshape.jsx
'
).
projectShape
;
import
{
selectIsMuted
,
selectNewStudiosLaunched
}
from
'
../../redux/session.js
'
;
import
{
selectIsMuted
}
from
'
../../redux/session.js
'
;
import
StudioMuteEditMessage
from
'
../studio/studio-mute-edit-message.jsx
'
;
import
StudioMuteEditMessage
from
'
../studio/studio-mute-edit-message.jsx
'
;
require
(
'
./subactions.scss
'
);
require
(
'
./subactions.scss
'
);
...
@@ -159,6 +159,6 @@ Subactions.propTypes = {
...
@@ -159,6 +159,6 @@ Subactions.propTypes = {
module
.
exports
=
connect
(
module
.
exports
=
connect
(
state
=>
({
state
=>
({
showAddToStudioMuteError
:
select
NewStudiosLaunched
(
state
)
&&
select
IsMuted
(
state
)
showAddToStudioMuteError
:
selectIsMuted
(
state
)
})
})
)(
Subactions
);
)(
Subactions
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment