hato-cc-legacy / front-end

0 stars 0 forks source link

Create admin user page #17

Open ebisuG opened 1 month ago

ebisuG commented 1 month ago

The format of object which backend sends to admin :

{
    card:{
        id:1,
        front_text:"huga",
        back_text:"hoge",
        is_flagged:"true",
        comments:[{
            id:3,
            text:"hogehoge",
            },
            {id:3,
            text:"hogehoge"},
            ]
    },
    card:{
        id:5,
        front_text:"moge",
        back_text:"haagaga",
        is_flagged:"false",
        comments:[{
            id:3,
            text:"gegege",
            },
            {id:3,
            text:"hploplop"},
        ]
    }
}

notes: If is_flagged is false, it doesn't need delete button on the card.