minor updates, changed running port and nav logic

This commit is contained in:
Solomon Laing 2020-02-28 23:54:46 +10:30
parent 18db5f47e8
commit 0b677716f5
3 changed files with 4 additions and 7 deletions

View File

@ -113,9 +113,6 @@ daddy.factory('stateData', function($cookies){
userNo : null,
userName : null,
userLevel : 0
},
content : {
gallery : null
}
}

View File

@ -5,14 +5,14 @@ let app = express()
app.use(express.static('./'))
app.use(cors({
origin: "http://localhost:7001"
origin: "http://localhost:8600"
}))
app.get('/', (req, res) => {
res.sendFile('./index.html')
})
let port = 7000
let port = 8600
app.listen(port, () => {
console.log("Listening on port "+port+"...");

View File

@ -3,8 +3,8 @@
</span>
<span class="mitem">
<span class="msub" ng-click="setCategories()">Categories<spanext ng-if="state.page == 'categories'"> ></spanext></span>
<span ng-if="state.page == 'categories'" class="msub" ng-click="setCategoryCreate()">Create a Category</span>
<span class="msub" ng-click="setCategories()">Categories<spanext ng-if="state.page == 'categories' && state.user.userLevel == 1"> ></spanext></span>
<span ng-if="state.page == 'categories' && state.user.userLevel == 1" class="msub" ng-click="setCategoryCreate()">Create a Category</span>
</span>
<span class="mitem">