diff --git a/src/js/Playlist/Playlists.js b/src/js/Playlist/AllPlaylistsRouter.js
similarity index 90%
rename from src/js/Playlist/Playlists.js
rename to src/js/Playlist/AllPlaylistsRouter.js
index 822a01e..cbb2cf1 100644
--- a/src/js/Playlist/Playlists.js
+++ b/src/js/Playlist/AllPlaylistsRouter.js
@@ -1,8 +1,8 @@
import React, { Component } from "react";
import { BrowserRouter as Router, Route, Link, Switch } from "react-router-dom";
-import PlaylistsView from "./PlaylistsView.js"
-import NewPlaylist from "./NewPlaylist.js";
+import PlaylistsView from "./PlaylistsList.js"
+import NewPlaylist from "./New.js";
import ScratchView from "./ScratchView.js";
class Playlists extends Component {
diff --git a/src/js/Playlist/NewPlaylist.js b/src/js/Playlist/New.js
similarity index 100%
rename from src/js/Playlist/NewPlaylist.js
rename to src/js/Playlist/New.js
diff --git a/src/js/Playlist/PlaylistsView.js b/src/js/Playlist/PlaylistsList.js
similarity index 94%
rename from src/js/Playlist/PlaylistsView.js
rename to src/js/Playlist/PlaylistsList.js
index f7d40c2..8855fea 100644
--- a/src/js/Playlist/PlaylistsView.js
+++ b/src/js/Playlist/PlaylistsList.js
@@ -1,6 +1,6 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
-import { Button, ButtonGroup, Typography, Card, Grid } from '@material-ui/core';
+import { Button, ButtonGroup, Typography, Card, Grid, CircularProgress } from '@material-ui/core';
import CardActions from '@material-ui/core/CardActions';
import CardContent from '@material-ui/core/CardContent';
import { ThemeProvider } from '@material-ui/core/styles';
@@ -100,9 +100,7 @@ class PlaylistsView extends Component {
handleDeletePlaylist={this.handleDeletePlaylist}
handleRunAll={this.handleRunAll}/>;
- const loadingMessage = Loading...;
-
- return this.state.isLoading ? loadingMessage : grid;
+ return this.state.isLoading ? : grid;
}
}
diff --git a/src/js/Playlist/View/Count.js b/src/js/Playlist/View/Count.js
index 1aa2eb3..f6c87bf 100644
--- a/src/js/Playlist/View/Count.js
+++ b/src/js/Playlist/View/Count.js
@@ -7,7 +7,7 @@ import GlobalTheme from "../../Theme";
const LazyPieChart = React.lazy(() => import("../../Maths/PieChart"))
-class Count extends Component {
+export class Count extends Component {
constructor(props){
super(props);
@@ -130,6 +130,4 @@ class Count extends Component {
function LoadingMessage(props) {
return
Loading...
;
-}
-
-export default Count;
\ No newline at end of file
+}
\ No newline at end of file
diff --git a/src/js/Playlist/View/Edit.js b/src/js/Playlist/View/Edit.js
index 60d886e..3b973e5 100644
--- a/src/js/Playlist/View/Edit.js
+++ b/src/js/Playlist/View/Edit.js
@@ -1,6 +1,11 @@
import React, { Component } from "react";
const axios = require('axios');
+import { Card, Paper, Button, CircularProgress, FormControl, TextField, Input, InputLabel, Select, Checkbox, FormControlLabel, IconButton, InputAdornment } from '@material-ui/core';
+import { ThemeProvider } from '@material-ui/core/styles';
+import { Add, Delete } from '@material-ui/icons';
+import GlobalTheme from "../../Theme.js"
+
import showMessage from "../../Toast.js";
var thisMonth = [
@@ -33,7 +38,7 @@ var lastMonth = [
'november'
];
-class Edit extends Component{
+export class Edit extends Component{
constructor(props){
super(props);
@@ -393,7 +398,8 @@ class Edit extends Component{
var date = new Date();
const table = (
-
+
+
{ this.state.playlist_references.length > 0 &&
Managed
}
{ this.state.playlist_references.length > 0 && }
@@ -404,185 +410,146 @@ class Edit extends Component{
Spotify playlist can be the name of either your own created playlist or one you follow, names are case sensitive
+
+ Spotify Playlist
+
+
+
+
+
+ }
+ />
+