Skip to content

Commit

Permalink
Disable scene UI in Gladys beta
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Oct 18, 2019
1 parent 2253625 commit 54ba108
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 4 deletions.
29 changes: 29 additions & 0 deletions front/src/routes/scene/ComingSoon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
import { Text } from 'preact-i18n';

const ComingSoon = ({ children, ...props }) => (
<div class="page">
<div class="page-main">
<div class="my-3 my-md-5">
<div class="container">
<div class="page-header">
<h1 class="page-title">
<Text id="scene.title" />
</h1>
</div>
<div>
<div>
<div class="card">
<div class="card-body">
<div class="alert alert-info">Scene support coming soon! 🚧</div>
<p>The scene core/API is working, but we are still working on a clean UI 🙂 Stay updated!</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
);

export default ComingSoon;
10 changes: 6 additions & 4 deletions front/src/routes/scene/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { Component } from 'preact';
import { connect } from 'unistore/preact';
import ScenePage from './ScenePage';
// import ScenePage from './ScenePage';
import ComingSoon from './ComingSoon';
import actions from '../../actions/scene';
import { RequestStatus } from '../../utils/consts';
// import { RequestStatus } from '../../utils/consts';

@connect(
'scenes,currentUrl,scenesGetStatus',
Expand All @@ -14,8 +15,9 @@ class Scene extends Component {
}

render(props, {}) {
const loading = props.scenesGetStatus === RequestStatus.Getting;
return <ScenePage {...props} loading={loading} />;
// const loading = props.scenesGetStatus === RequestStatus.Getting;
// return <ScenePage {...props} loading={loading} />;
return <ComingSoon />;
}
}

Expand Down

0 comments on commit 54ba108

Please sign in to comment.