I'm not sure if it it's just me but a lot of the time a draft will not go away after I posted a reply. I'm using pusher together with drafts with automatic draft saving every 6 seconds.

    nixpc I think I'm experiencing the same here since we enabled the extension on Discuss. My drafts are filling up even though I didn't manually save any.

      12 days later

      screenshot

      There seems to be a issue when using Polls and Dafts: a long title will get behind the save button. I was about to open an issue on GitHub, but I don't know if this should be on Drafts or Polls...

      I tried to fix it with these lines of LESS code, I'm not sure if this is the best way to do it though...

      @media @tablet-up {
      	.ComposerBody-header {
      		// restets the default value, the margin will come from each individual element, this way when there
      		// is a second line, the elements have a gap betwen them.
      		margin: 0;
      		& > li {
      			margin-bottom: 10px;
      		}
      
      		// We want to prevent the items from this container to go too much to the right.
      		// Therefore we add a floated element that will make elements that don't fit break to the next line.
      		&:before {
      			content: '';
      			float: right;
      			width: 144px; // width of `$('.Composer-controls')`
      			height: 1px; // if not set, the :before element has no effect
      			visibility: hidden;
      		}
      	}
      }
      a month later

      Kyrne Very nice! I had implemented a dirty workaround to make such a thing, but now tI can rewrite in a clean way! Thank you 🙏

      Kyrne I'm wondering why the extra flied is so limited in the DB ('length' => 255). To make it more flexible, this extra field could be a blob (as it is for the users.preferences field).

      (I had no problems with length yet, but I just think about possible future issues...)

      Can we have a button to let user delete all draft at once?

      4 days later

      @Kyrne Loading icon that inside of draft window is appearing when I click discard removing article.

      2 months later

      Having some issues today with this extension today:

      TypeError: Cannot read property 'substring' of undefined
      at truncate(webpack://@flarum/core/./src/common/utils/string.js:10:44)
      at ? (webpack://@fof/drafts/./src/forum/components/DraftsList.js:82:90)
      at Array.map(<anonymous>)
      at view(webpack://@fof/drafts/./src/forum/components/DraftsList.js:46:36)
      at render(webpack://@flarum/core/./src/common/Component.js:100:61)
      at getMenu(webpack://@flarum/core/./src/forum/components/NotificationsDropdown.js:47:35)
      at view(webpack://@flarum/core/./src/common/components/Dropdown.js:42:15)
      at render(webpack://@flarum/core/./src/common/Component.js:100:61)
      at view(webpack://@flarum/core/./src/common/Component.js:186:24)
      at checkView(webpack://@flarum/core/./node_modules/mithril/mithril.js:806:16)
      at markViews(webpack://@flarum/core/./node_modules/mithril/mithril.js:822:11)
      at buildObject(webpack://@flarum/core/./node_modules/mithril/mithril.js:847:10)
      at build(webpack://@flarum/core/./node_modules/mithril/mithril.js:1000:11)
      at buildArray(webpack://@flarum/core/./node_modules/mithril/mithril.js:630:15)
      at build(webpack://@flarum/core/./node_modules/mithril/mithril.js:989:11)
      at buildUpdatedNode(webpack://@flarum/core/./node_modules/mithril/mithril.js:469:21)
      at buildObject(webpack://@flarum/core/./node_modules/mithril/mithril.js:891:11)
      at build(webpack://@flarum/core/./node_modules/mithril/mithril.js:1000:11)
      at buildArray(webpack://@flarum/core/./node_modules/mithril/mithril.js:630:15)
      at build(webpack://@flarum/core/./node_modules/mithril/mithril.js:989:11)
      at buildUpdatedNode(webpack://@flarum/core/./node_modules/mithril/mithril.js:469:21)
      at buildObject(webpack://@flarum/core/./node_modules/mithril/mithril.js:891:11)
      at build(webpack://@flarum/core/./node_modules/mithril/mithril.js:1000:11)
      at render(webpack://@flarum/core/./node_modules/mithril/mithril.js:1340:19)
      at f(webpack://@flarum/core/./node_modules/mithril/mithril.js:1567:7)
      at forEach(webpack://@flarum/core/./node_modules/mithril/mithril.js:189:39)
      at redraw(webpack://@flarum/core/./node_modules/mithril/mithril.js:1563:3)

        MikeJones after some quick testing I disabled the recahe plugin and this one is workign fine again. @Kyrne looks like recache doesnt play nice with fof/drafts.

          MikeJones Looks like it's not a recache issue. Likely one of those disguised issues.

          0.2.0

          • Beta 14 ready 🥳
          Updating
          composer require fof/drafts
          php flarum cache:clear

            karaok omg Thank youu!!! so many extensions suddently updated to beta 14 😄 😆 😁 🤗 ❤️ (I hope the next one on the list is POLLS >.<)