houdini/app/javascript/legacy/components/saving_indicator.js

20 lines
494 B
JavaScript
Raw Normal View History

2019-11-06 20:36:28 +00:00
// License: LGPL-3.0-or-later
var h = require("virtual-dom/h")
module.exports = function(savingState) {
return h('div.savingIndicator.pastelBox--yellow'
, {style: {
position: 'fixed'
, top: '0'
, left: '50%'
, width: '70px'
, marginLeft: '-35px'
, textAlign: 'center'
, zIndex: '999999'
, fontSize: '14px'
, padding: '4px'
, display: savingState.hide ? 'none' : 'block'
}}
, savingState.text)
}